package de.codi.mappingevaluation;

import java.util.ArrayList;
import java.util.List;

import de.unima.alcomox.exceptions.MappingException;
import de.unima.alcomox.mapping.Mapping;

public class MappingOperation {

	/**
	 * @param args
	 * @throws MappingException 
	 */
	public static void main(String[] args) throws MappingException {
		Mapping ref = new Mapping("res/anatomy/reference_2011.rdf");
		
		List<Mapping> mappingList = new ArrayList<Mapping>();
		mappingList.add(new Mapping("res/anatomy/task-1/AgrMaker.rdf"));
		mappingList.add(new Mapping("res/anatomy/task-1/Ef2Match.rdf"));
		mappingList.add(new Mapping("res/anatomy/task-1/NBJLM.rdf"));
		mappingList.add(new Mapping("res/anatomy/task-1/SOBOM.rdf"));
		mappingList.add(new Mapping("res/anatomy/task-1/BLOOMS.rdf"));
		
		Mapping one = new Mapping();
		for(Mapping m : mappingList){
			one = one.getUnion(m);
		}
		one = one.getIntersection(ref);
		one.write("res/top5-2010-correct-ref2011.rdf");
		
	}

}
